using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;

namespace OrbitOne.CRMLyncInfoDashboard.CRM
{
    /*public class LyncDashboardEntityConfigurationModel: LyncDashboardConfigurationModel
    {
        private Regex m_regex = new Regex(@"{\s*?(?<Name>.+?)\s*?:\s*?(?<Value>.+?)\s*?}");

        public LyncDashboardEntityConfigurationModel(orb_lyncdashboardconfiguration lyncDashboardConfiguration) : base(lyncDashboardConfiguration)
        {
        }

        public IList<DisplayFieldModel> DisplayFields
        {
            get
            {
                var matches = m_regex.Matches(Value).Cast<Match>().ToList();
                var displayFields =
                    matches.Select(m => new DisplayFieldModel(m.Groups["Name"].Value, m.Groups["Value"].Value))
                        .ToList();
                return displayFields;
            }
        }
    }*/

    
}